package com.yanyilu.basing.mapper;

import com.yanyilu.basing.common.R;
import com.yanyilu.basing.entity.TotalTimeMileage;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yanyilu.basing.entity.dto.TotalTimeMileDTO;
import com.yanyilu.basing.entity.dto.UserDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
public interface TotalTimeMileageMapper extends BaseMapper<TotalTimeMileage> {

    void updateByUserIdAndName(@Param("realName")String realName, @Param("userId")Integer userId);

    TotalTimeMileDTO selectDTOByUserId(@Param("userId") Integer userId);

    UserDTO getRankByUserId(@Param("userId") Integer userId);

    TotalTimeMileage selectByUserId(@Param("userId") Integer userId);

}
